<?php

namespace app\common\model;

/**
 * 用户
 * Class User
 * @package app\common\model
 */
class Msg extends Base
{

    protected $table = 'user_msg';


    public $status = [
        1 => '已读',
        0 => '未读',
    ];

    /**
     * 取得类型名
     * @param $key
     * @param $value
     * @return mixed|string
     */
    public function getStatusNameAttr($key, $value)
    {

        return isset($this->status[$value['status']]) ? $this->status[$value['status']] : '';
    }


}